package com.turing.post.organization.util;

import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

@Remote
@Local
public interface MerchantBusinessTypeDao {

	/**
	 * 插入
	 * 
	 * @param mbt
	 * @throws PCPSApplicationException
	 */
	public void insert(MerchantBusinessType mbt)
			throws PCPSApplicationException;
	
	/**
	 * 修改
	 * 
	 * @param mbt
	 * @throws PCPSApplicationException
	 */
	public void update(MerchantBusinessType mbt)
			throws PCPSApplicationException;

	/**
	 * 根据主键查询
	 * 
	 * @param mbt
	 * @return
	 */
	public MerchantBusinessType getMerchantBusinessTypeByKey(
			MerchantBusinessType mbt);
	
	/**
	 * 删除
	 * 
	 * @param mbt
	 * @throws PCPSApplicationException
	 */
	public void delete(MerchantBusinessType mbt)
			throws PCPSApplicationException;
	
	/**
	 * 根据商户号查询
	 * 
	 * @param merchantNo
	 * @return
	 */
	public List<MerchantBusinessType> getAllMerchantBusinessTypeByMerchantNo(
			String merchantNo);
}
